﻿<Window x:Class="Microsoft.EnhancedReminders.OutlookAddIn.DialogLauncherWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:control="clr-namespace:Microsoft.EnhancedReminders.OutlookAddIn;assembly="
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:properties="clr-namespace:Microsoft.EnhancedReminders.Properties"
    ResizeMode="NoResize"
    SizeToContent="WidthAndHeight"
    Title="{x:Static properties:Resources.RibbonGroupLabel}">

    <Window.Resources>
        <Thickness x:Key="ButtonStyle">0,10,8,8</Thickness>
    </Window.Resources>

    <Window.CommandBindings>
        <CommandBinding Command="{x:Static control:DialogLauncherWindow.OkCommand}"
            Executed="Ok"/>
        <CommandBinding Command="{x:Static control:DialogLauncherWindow.ApplyCommand}"
            Executed="Apply" CanExecute="IsDirty"/>
    </Window.CommandBindings>
    
    <Grid>
        <Grid.ColumnDefinitions >
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>

        <control:NotificationRulesPropertyPage Grid.ColumnSpan="6" x:Name="notificationRulesPropertyPage"/>
        
        <Button Grid.Row="1" Grid.Column="3" Margin="{DynamicResource ButtonStyle}" Command="{x:Static control:DialogLauncherWindow.OkCommand}" Content="{x:Static properties:Resources.OkButton}" IsDefault="True"/>
        <Button Grid.Row="1" Grid.Column="4" Margin="{DynamicResource ButtonStyle}" Content="{x:Static properties:Resources.CancelButton2}" IsCancel="True"/>
        <Button Grid.Row="1" Grid.Column="5" Margin="{DynamicResource ButtonStyle}" Command="{x:Static control:DialogLauncherWindow.ApplyCommand}" Content="{x:Static properties:Resources.ReadOnlyChannelControlWindowApplyButton}"/>
    </Grid>
</Window>
